package io.github.wslxm.springbootplus2.starter.robot.properties;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * robot 群机器人配置类（yml 读取）
 * @author wangsong
 * @date 2020/12/11 0011 17:10
 * @return
 * @version 1.0.1
 */
@SuppressWarnings("all")
@Configuration
@ConfigurationProperties(prefix = "robot")
@Data
@Slf4j
public class RobotProperties {

    public RobotProperties() {
        log.info("Robot 机器人助手注册...");
    }

    /**
     * 系统默认机器人
     */
    private String primary;

    /**
     * @用户
     */
    private String user;

    /**
     * webhook 配置集
     */
    private Map<String, WebhookProperties> webhooks;

    /**
     * 指定 code
     */
    private List<Integer> codes;

    /**
     * 排除 code
     */
    private List<Integer> excludeCodes;
}

